import request from "@/utils/request";

const Api = {
  getCaptcha: "/captcha",
  getMyToken: "/system-auth/oauth/token",

  getCarGeoJsonCache:
    "/cyc-postgis/api.cyc.pg/v1/location/inCache/points/geojson",
  getCarPointsCache: "/cyc-postgis/api.cyc.pg/v1/location/inCache/points",
  getCarCountCache:
    "/cyc-postgis/api.cyc.pg/v1/vehicleAnalysis/inCache/summaryLast5m",
  getCarCountsummaryLast5m:
    "/cyc-postgis/api.cyc.pg/v1/vehicleAnalysis/summaryLast5m",
  getCarDayCountCache:
    "/cyc-postgis/api.cyc.pg/v1/vehicleAnalysis/inCache/summaryToday",
  getCarDayCountsummaryToday:
    "/cyc-postgis/api.cyc.pg/v1/vehicleAnalysis/summaryToday",
  getCarLast24HDensity:
    "/cyc-postgis/api.cyc.pg/v1/vehicleAnalysis/summaryInLast24H",
  getCarDensityByDate:
    "/cyc-postgis/api.cyc.pg/v1/vehicleAnalysis/summaryOneDay",
  getCarDensityByTime:
    "/cyc-postgis/api.cyc.pg/v1/vehicleAnalysis/summaryOneHour",
  getCarOBDCountCache: "/cyc-obd-admin/cyc.obd.admin/v1/dashboard/online",
  getCarDischargeByToday:
    "/vehicle-web-server/api.v1/emission/getCurrentDayDistrictEmission",
  getCarDischargeLast5m: "/vehicle-web-server/api.v1/emission/getEmissionNow",
  getCarDischargeLastHour:
    "/vehicle-web-server/api.v1/emission/getLastHourEmission",
  getCarDischargeLastWeek:
    "/vehicle-web-server/api.v1/emission/getLastWeekEmission",
  getCarDayCountInDays:
    "/cyc-postgis/api.cyc.pg/v1/vehicleAnalysis/summaryInDays",
  getCarBaseInfo: "/cyc-vehicleInfo/api.cyc.baseInfo/v1/vehicleInfo",
  getCarState: "/cyc-bigData-server/api.cyc.bigData/v1/location/last/position",
  getCarImage: "/cyc-postgis/api.cyc.pg/v1/vehiclePosition/portrait",
  getCarImageFromTo: "/cyc-postgis/api.cyc.pg/v1/vehiclePosition/position",
  getCarCityPoints: "/cyc-postgis/api.cyc.pg/v1/vehiclePosition/stop/station",
  getCarLog: "/cyc-telemetering/cyc.telemetering/v1/checkResult",
  getCarObd: "/cyc-obd-admin/cyc.obd.admin/v1/location/vehicleStatus",
  getCarHistoryLocus:
    "/cyc-bigData-server/api.cyc.bigData/v1/location/geojson/lines",
  getCarTotalLocus: "/cyc-postgis/api.cyc.pg/v1/vehiclePosition/history/tracks",
  getRegionAlert: "/cyc-postgis/api.cyc.pg/v1/alarm/region",
  getVehicleAlert: "/cyc-postgis/api.cyc.pg/v1/alarm/vehicle",
  getCarGreyListGeo:
    "/cyc-postgis/api.cyc.pg/v1/location/greyList/inCache/points/geojson",
  getOBDPointsGeo:
    "/cyc-obd-admin/cyc.obd.admin/v1/device/online/latest/location/geojson/point",
  getCarHistoryPointsGeo:
    "/cyc-bigData-server/api.cyc.bigData/v1/location/geojson/point",
  getSummaryLastMouth:
    "/vehicle-web-server/api.v1/emission/getLastMouthEmission",
  getSummaryThisYear:
    "/vehicle-web-server/api.v1/emission/getCurrentYearEmission",
  getRegionAnalysis: "/vehicle-web-server/api.cyc.pg/v1/regionAnalysis/regions",
  getRegionDict: "/cyc-postgis/api.cyc.pg/v1/dict/dict",
  getRegionAnalysisInTime:
    "/vehicle-web-server/api.cyc.pg/v1/regionAnalysis/regions/inTime",
  getOneRegionSumTotal:
    "/cyc-emission-cal/api.cyc.em/v1/region/statistic/oneRegion/sumTotal",
  getOneRegionSumTotalByTime:
    "/cyc-emission-cal/api.cyc.em/v1/region/statistic/oneRegion/sumTotalByTime",
  getAllRegionSumTotal:
    "/cyc-emission-cal/api.cyc.em/v1/region/statistic/allRegions/sumTotal",
  getPfInTime:
    "/cyc-postgis/api.cyc.pg/v1/regionAnalysis/oneRegion/vehicleNum/Pf/inTime",
  getVehicleNumInTime:
    "/cyc-postgis/api.cyc.pg/v1/regionAnalysis/oneRegion/vehicleNum/inTime",
  getVehicleNumTonInTime:
    "/cyc-postgis/api.cyc.pg/v1/regionAnalysis/oneRegion/vehicleNum/ton/inTime",
  getMjVehicleLocationOnline: "/vehicle-mj/monitor/mj-vehicle-location/online",
  getBenchmarkBased:
    "/vehicle-web-server/cyc-postgis/api.cyc.pg/v1/regionAnalysis/regions/based",
  getDynamicRegionAnalysisRegion:
    "/cyc-postgis/api.cyc.pg/v1/dynamicRegionAnalysis/region",
  getDynamicRegionAnalysisRegionId:
    "/cyc-postgis/api.cyc.pg/v1/dynamicRegionAnalysis",
  getAlarmRecordOnline: "/vehicle-mj/monitor/alarm-record/online",
  getMjEnterpriseInfoList:
    "/vehicle-mj/api.mj.monitor/v1/monitor/mj-enterprise-info/list",
  getMjEnterpriseInfo: "/vehicle-web-server/api.v1/regionInfo/detail",
  getMjVehicleLocationPage: "/vehicle-mj/monitor/mj-vehicle-location/page",
  getAlarmOnline: "/cyc-telemetering/cyc.telemetering/v1/alarm/online",
  getYcCheckSite: "/cyc-telemetering/cyc.telemetering/v1/checkSite",
  getYcCheckResult: "/cyc-telemetering/cyc.telemetering/v1/checkResult/oneSite",
  getMjLeftAnalysis: "/vehicle-mj/api.mj.monitor/v1/monitor/analysis",
  getYcLeftAnalysis: "/cyc-telemetering/cyc.telemetering/v1/analysis",
  getHourRoadCount:
    "/cyc-postgis/api.cyc.pg/v1/vehicleRoad/selectRoadVehicleCount",
  // getHourRoadCount:'/vue-admin-template/user/selectRoadVehicleCount',
  getCarLastHourCountCache:
    "/vehicle-web-server/api.v1/regionInfo/enterpriseMonitoring/counts/district",
  enterpriseMonitoringCountsByIndustrialPark:
    "/vehicle-web-server/api.v1/regionInfo/enterpriseMonitoring/counts/industrialPark",
  enterpriseMonitoringCountsWeekly:
    "/vehicle-web-server/api.v1/regionInfo/enterpriseMonitoring/counts/weekly",
  enterpriseMonitoringCounts:
    "/vehicle-web-server/api.v1/regionInfo/enterpriseMonitoring/counts",

  enterpriseCountsWeekly:
    "/vehicle-web-server/api.v1/regionInfo//enterprise/counts/weekly",
  alarmRecords:
    "/vehicle-web-server/api.v1/regionVehicleRecords/alarmRecords/page",
  analysisRegionVehicle: "/vehicle-web-server/api.v1/LocationNow/analysisRegionVehicle/currentCount",
getCarCounts:
    "/vehicle-web-server/api.v1/regionInfo/enterprise/carCounts",
};


export function getCarCounts(data = {}) {
  return request({
    url: Api.getCarCounts,
    method: "get",
    params: data,
  });
}
export function analysisRegionVehicle(data = {}) {
  return request({
    url: Api.analysisRegionVehicle,
    method: "get",
    params: data,
  });
}
export function alarmRecords(pars = {}) {
  return request({
    url: Api.alarmRecords,
    method: "get",
    params: pars,
  });
}

export function enterpriseCountsWeekly(pars = {}) {
  return request({
    url: Api.enterpriseCountsWeekly,
    method: "get",
    params: pars,
  });
}

export function enterpriseMonitoringCountsWeekly(pars = {}) {
  return request({
    url: Api.enterpriseMonitoringCountsWeekly,
    method: "get",
    params: pars,
  });
}
export function enterpriseMonitoringCounts(pars = {}) {
  return request({
    url: Api.enterpriseMonitoringCounts,
    method: "get",
    params: pars,
  });
}

export function enterpriseMonitoringCountsByIndustrialPark(pars = {}) {
  return request({
    url: Api.enterpriseMonitoringCountsByIndustrialPark,
    method: "get",
    params: pars,
  });
}

export function getHourRoadCount(pars = {}) {
  return request({
    url: Api.getHourRoadCount,
    method: "get",
    params: pars,
  });
}

// 获取验证码
export function getCaptcha() {
  return request({
    url: Api.getCaptcha,
    method: "get",
  });
}

// 请求token
export function getMyToken(pars = {}) {
  return request({
    url: Api.getMyToken,
    headers: {
      Authorization: "Basic c3lzdGVtLWFkbWluLXdlYjoxMjM0NTY=",
    },
    method: "post",
    params: pars,
  });
}
// 登出
export function logout() {
  return request({
    url: "/system-auth/oauth/logout",
    method: "post",
  });
}

// 实时车辆位置点-inCache
export function getCarPointsCache(pars = {}) {
  return request({
    url: Api.getCarPointsCache,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 实时车辆点位-GEOJSON-InCache
export function getCarGeoJsonCache(pars = {}) {
  return request({
    url: Api.getCarGeoJsonCache,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 统计实时车辆数据-inCache
export function getCarCountCache(pars = {}) {
  return request({
    url: Api.getCarCountCache,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 统计上一小时车辆数据-inCache
// export function getCarLastHourCountCache(pars = {}) {
//   return request({
//     url: Api.getCarLastHourCountCache,
//     headers: {},
//     method: 'get',
//     params: pars
//   })
// }

export function getCarLastHourCountCache(pars = {}) {
  return request({
    url: Api.getCarLastHourCountCache,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 统计当天车辆当日-inCache
export function getCarDayCountCache(pars = {}) {
  return request({
    url: Api.getCarDayCountCache,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 统计实时车辆数据
export function getCarCountsummaryLast5m(pars = {}) {
  return request({
    url: Api.getCarCountsummaryLast5m,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 统计当天车辆当日-inCache
export function getCarDayCountsummaryToday(pars = {}) {
  return request({
    url: Api.getCarDayCountsummaryToday,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 统计某段时间内日车辆数
export function getCarDayCountInDays(pars = {}) {
  return request({
    url: Api.getCarDayCountInDays,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 近24小时车辆及车辆密度
export function getCarLast24HDensity(pars = {}) {
  return request({
    url: Api.getCarLast24HDensity,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 统计历史车辆数据-某天
export function getCarDensityByDate(pars = {}) {
  return request({
    url: Api.getCarDensityByDate,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 统计历史车辆数据-某小时
export function getCarDensityByTime(pars = {}) {
  return request({
    url: Api.getCarDensityByTime,
    headers: {},
    method: "get",
    params: pars,
  });
}

// OBD车辆统计查询接口
export function getCarOBDCountCache(pars = {}) {
  return request({
    url: Api.getCarOBDCountCache,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 车辆基本信息查询
export function getCarBaseInfo(pars = {}) {
  return request({
    url: Api.getCarBaseInfo,
    headers: {},
    method: "get",
    params: pars,
  });
}

//实时排放量汇总
export function getCarDischargeLast5m(pars = {}) {
  return request({
    url: Api.getCarDischargeLast5m,
    headers: {},
    method: "get",
    params: pars,
  });

  // return Promise.resolve({
  //   code: "00000",
  //   data: [
  //     {
  //       co: 155.5079459,
  //       nox: 335.5915579,
  //       so2: 9.8923517,
  //       nh3: 1.2012103,
  //       vocs: 14.1511369,
  //       pm25: 2.2892036,
  //       pm10: 2.3986902,
  //       bc: 0.0299777,
  //       oc: 0.0464822,
  //       tc: 116.70741932500002,
  //       coRatio: 0.0,
  //       noxRatio: 0.0,
  //       so2Ratio: 0.0,
  //       nh3Ratio: 0.0,
  //       vocsRatio: 0.0,
  //       pm25Ratio: 0.0,
  //       pm10Ratio: 0.0,
  //       bcRatio: 0.0,
  //       ocRatio: 0.0,
  //       tcRatio: 0.0,
  //     },
  //   ],
  //   msg: "一切ok",
  // });
}

//上一小时排放量汇总(千克)
export function getCarDischargeLastHour(pars = {}) {
  return request({
    url: Api.getCarDischargeLastHour,
    headers: {},
    method: "get",
    params: pars,
  });
  // return Promise.resolve({
  //   code: "00000",
  //   data: [
  //     {
  //       co: 1846.1596063,
  //       nox: 3983.3804529,
  //       so2: 117.4349511,
  //       nh3: 14.2599019,
  //       vocs: 168.0193118,
  //       pm25: 27.1234006,
  //       pm10: 28.369471,
  //       bc: 0.3552103,
  //       oc: 0.5341251,
  //       tc: 1385.509040125,
  //       coRatio: 0.67,
  //       noxRatio: 0.65,
  //       so2Ratio: 0.67,
  //       nh3Ratio: 0.67,
  //       vocsRatio: 0.66,
  //       pm25Ratio: 0.42,
  //       pm10Ratio: 0.28,
  //       bcRatio: -2.78,
  //       ocRatio: -2.73,
  //       tcRatio: 0.66,
  //     },
  //   ],
  //   msg: "一切ok",
  // });
}

//上一周排放量汇总(吨)
export function getCarDischargeLastWeek(pars = {}) {
  return request({
    url: Api.getCarDischargeLastWeek,
    headers: {},
    method: "get",
    params: pars,
  });

  // return Promise.resolve({
  //   code: "00000",
  //   data: {
  //     "2025-04-15": {
  //       co: 21.9361231233,
  //       nox: 47.3452697165,
  //       so2: 1.3952782939,
  //       nh3: 0.1694260541,
  //       vocs: 1.9969082803,
  //       pm25: 0.3237446442,
  //       pm10: 0.3392827478,
  //       bc: 0.0045050449,
  //       oc: 0.0067163652,
  //       tc: 16.463313752574997,
  //     },
  //     "2025-04-16": {
  //       co: 20.3834334853,
  //       nox: 43.9942860039,
  //       so2: 1.2965744499,
  //       nh3: 0.1574406241,
  //       vocs: 1.8551933523,
  //       pm25: 0.3006586077,
  //       pm10: 0.3151929746,
  //       bc: 0.0041425073,
  //       oc: 0.0062257263,
  //       tc: 15.297943347574998,
  //     },
  //     "2025-04-17": {
  //       co: 20.1185235733,
  //       nox: 43.4190460901,
  //       so2: 1.2797272919,
  //       nh3: 0.1553948961,
  //       vocs: 1.8311044453,
  //       pm25: 0.2964866072,
  //       pm10: 0.310643231,
  //       bc: 0.0040387684,
  //       oc: 0.0060693056,
  //       tc: 15.099000753975,
  //     },
  //     "2025-04-18": {
  //       co: 14.2177493445,
  //       nox: 30.6851582839,
  //       so2: 0.9043732013,
  //       nh3: 0.1098163507,
  //       vocs: 1.294051741,
  //       pm25: 0.2095931466,
  //       pm10: 0.2196240494,
  //       bc: 0.0028896906,
  //       oc: 0.0043048273,
  //       tc: 10.670506526275,
  //     },
  //     "2025-04-19": {
  //       co: 17.2861961019,
  //       nox: 37.2940018863,
  //       so2: 1.0996050305,
  //       nh3: 0.1335229875,
  //       vocs: 1.5731482519,
  //       pm25: 0.2536472922,
  //       pm10: 0.2651523286,
  //       bc: 0.0033320109,
  //       oc: 0.004920413,
  //       tc: 12.972899500325,
  //     },
  //     "2025-04-20": {
  //       co: 37.2361400581,
  //       nox: 80.3622699341,
  //       so2: 2.3685402099,
  //       nh3: 0.2876074251,
  //       vocs: 3.3891510401,
  //       pm25: 0.5487952266,
  //       pm10: 0.574955105,
  //       bc: 0.0076626626,
  //       oc: 0.0112349582,
  //       tc: 27.946002664374998,
  //     },
  //     "2025-04-21": {
  //       co: 35.7838888057,
  //       nox: 77.2205220611,
  //       so2: 2.2761584295,
  //       nh3: 0.2763896965,
  //       vocs: 3.2570266207,
  //       pm25: 0.5267921491,
  //       pm10: 0.5514752662,
  //       bc: 0.0071890234,
  //       oc: 0.0106211653,
  //       tc: 26.855726792975002,
  //     },
  //   },
  //   msg: "一切ok",
  // });
}
//当天分区县排放量汇总(吨)
export function getCarDischargeByToday(pars = {}) {
  return request({
    url: Api.getCarDischargeByToday,
    headers: {},
    method: "get",
    params: pars,
  });
}
//区域告警
export function getRegionAlert(pars = {}) {
  return request({
    url: Api.getRegionAlert,
    headers: {},
    method: "get",
    params: pars,
  });
}
//车辆告警
export function getVehicleAlert(pars = {}) {
  return request({
    url: Api.getVehicleAlert,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 车辆实时信息
export function getCarState(pars = {}) {
  return request({
    url: Api.getCarState,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 获取行为画像
export function getCarImage(pars = {}) {
  return request({
    url: Api.getCarImage,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 获取往返路线
export function getCarImageFromTo(pars = {}) {
  return request({
    url: Api.getCarImageFromTo,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 获取市内停靠点
export function getCarCityPoints(pars = {}) {
  return request({
    url: Api.getCarCityPoints,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 获取遥感遥测数据
export function getCarLog(pars = {}) {
  return request({
    url: Api.getCarLog,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 获取OBD单车实时数据
export function getCarObd(pars = {}) {
  return request({
    url: Api.getCarObd,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 获取车辆历史轨迹geo
export function getCarHistoryLocus(pars = {}) {
  return request({
    url: Api.getCarHistoryLocus,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 获取车辆长跑轨迹geo
export function getCarTotalLocus(pars = {}) {
  return request({
    url: Api.getCarTotalLocus,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 获取灰名单实时点位geo
export function getCarGreyList(pars = {}) {
  return request({
    url: Api.getCarGreyListGeo,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 获取OBD点位Geo
export function getOBDPointsGeo(pars = {}) {
  return request({
    url: Api.getOBDPointsGeo,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 根据时间获取车辆的轨迹点
export function getCarHistoryPointsGeo(pars = {}) {
  return request({
    url: Api.getCarHistoryPointsGeo,
    headers: {},
    method: "get",
    params: pars,
  });
}
//获取上一月排放量汇总(吨)
export function getSummaryLastMouth(pars = {}) {
  return request({
    url: Api.getSummaryLastMouth,
    headers: {},
    method: "get",
    params: pars,
  });
  // return Promise.resolve({
  //   code: "00000",
  //   data: {
  //     co: 1162.0843241224,
  //     nox: 2508.401257807,
  //     so2: 73.916725958,
  //     nh3: 8.975569945,
  //     vocs: 105.7788714962,
  //     pm25: 17.165056216700002,
  //     pm10: 18.0025185648,
  //     bc: 0.24319754090000004,
  //     oc: 0.3605381613,
  //     tc: 872.166978794,
  //     coRatio: 45.71,
  //     noxRatio: 45.7,
  //     so2Ratio: 45.71,
  //     nh3Ratio: 45.71,
  //     vocsRatio: 45.71,
  //     pm25Ratio: 45.63,
  //     pm10Ratio: 45.55,
  //     bcRatio: 43.86,
  //     ocRatio: 44.41,
  //     tcRatio: 45.71,
  //   },
  //   msg: "一切ok",
  // });
}
//获取当年排放量汇总(吨)
export function getSummaryThisYear(pars = {}) {
  return request({
    url: Api.getSummaryThisYear,
    headers: {},
    method: "get",
    params: pars,
  });
  // return Promise.resolve({
  //   code: "00000",
  //   data: {
  //     co: 3336.2704825717,
  //     nox: 7202.614523242198,
  //     so2: 212.21474475620005,
  //     nh3: 25.768852559800006,
  //     vocs: 303.6672616129,
  //     pm25: 49.37281996349997,
  //     pm10: 51.857146336999996,
  //     bc: 0.7192015331999995,
  //     oc: 1.0637662944999997,
  //     tc: 2503.9858297564747,
  //   },
  //   msg: "一切ok",
  // });
}
// 区域对比
export function getRegionAnalysis(pars = {}) {
  return request({
    url: Api.getRegionAnalysis,
    headers: {},
    method: "get",
    params: pars,
  });
} //基准分析
export function getBenchmarkBased(pars = {}) {
  return request({
    url: Api.getBenchmarkBased,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 字典-区域
export function getRegionDict(pars = {}) {
  return request({
    url: Api.getRegionDict,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 区域趋势对比
export function getRegionAnalysisInTime(pars = {}) {
  return request({
    url: Api.getRegionAnalysisInTime,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 某区域排放量汇总
export function getOneRegionSumTotal(pars = {}) {
  return request({
    url: Api.getOneRegionSumTotal,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 某区域排放量统计-按时间
export function getOneRegionSumTotalByTime(pars = {}) {
  return request({
    url: Api.getOneRegionSumTotalByTime,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 当日所有区域排放量汇总
export function getAllRegionSumTotal(pars = {}) {
  return request({
    url: Api.getAllRegionSumTotal,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 某区域按排放阶段统计车辆数
export function getPfInTime(pars = {}) {
  return request({
    url: Api.getPfInTime,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 某区域某段时间车流量
export function getVehicleNumInTime(pars = {}) {
  return request({
    url: Api.getVehicleNumInTime,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 某区域按总重统计车辆数
export function getVehicleNumTonInTime(pars = {}) {
  return request({
    url: Api.getVehicleNumTonInTime,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 根据区县查询站点信息
export function getYcCheckSite(pars = {}) {
  return request({
    url: Api.getYcCheckSite,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 动态区域
export function getDynamicRegionAnalysisRegion(pars = {}) {
  return request({
    url: Api.getDynamicRegionAnalysisRegion,
    headers: {},
    method: "post",
    data: pars,
  });
}
//保存区域
export function getDynamicRegionAnalysisRegionId(pars = {}) {
  return request({
    url: Api.getDynamicRegionAnalysisRegionId + "/" + pars.regionId,
    headers: {},
    method: "post",
    data: pars,
  });
}

// 企业门禁实时车辆记录
export function getMjVehicleLocationOnline(pars = {}) {
  return request({
    url: Api.getMjVehicleLocationOnline,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 企业门禁告警信息
export function getAlarmRecordOnline(pars = {}) {
  return request({
    url: Api.getAlarmRecordOnline,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 企业门禁列表
export function getMjEnterpriseInfoList(pars = {}) {
  return request({
    url: Api.getMjEnterpriseInfoList,
    headers: {},
    method: "get",
    params: pars,
  });
}
// 企业门禁获取企业基本信息
export function getMjEnterpriseInfo(pars = {}) {
  return request({
    url: Api.getMjEnterpriseInfo + "/" + pars.regionId,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 企业门禁车辆分页记录
export function getMjVehicleLocationPage(pars = {}) {
  return request({
    url: Api.getMjVehicleLocationPage,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 遥测门站告警信息
export function getAlarmOnline(pars = {}) {
  return request({
    url: Api.getAlarmOnline,
    headers: {},
    method: "get",
    params: pars,
  });
}

// 遥测门站弹窗列表信息
export function getYcCheckResult(pars = {}) {
  return request({
    url: Api.getYcCheckResult,
    headers: {},
    method: "get",
    params: pars,
  });
}

//企业门禁左侧收缩框信息
export function getMjLeftAnalysis(pars = {}) {
  return request({
    url: Api.getMjLeftAnalysis,
    headers: {},
    method: "get",
    params: pars,
  });
}

//遥测门站左侧收缩框信息
export function getYcLeftAnalysis(pars = {}) {
  return request({
    url: Api.getYcLeftAnalysis,
    headers: {},
    method: "get",
    params: pars,
  });
}
